package com.bw.module_device.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.module_device.entity.DeviceResult
import retrofit2.http.*
/**
 * 智慧园区-01-设备管理-v1.1-吴熙-20250507
 */
interface DeviceApiService :BaseApiServer{
    @GET("/api/devices")
    suspend fun getDeviceList():BaseResponse<List<DeviceResult>>
    @GET("/api/devices/{id}")
    suspend fun getDeviceDetail(@Path("id") deviceId:Int):BaseResponse<DeviceResult>
    @POST("/api/devices")
    suspend fun addDevice(@Body deviceResult: DeviceResult):BaseResponse<DeviceResult>

    @DELETE("/api/devices/{id}")
    suspend fun deleteDevice(@Path("id")carId:Int):BaseResponse<String>

}